#自定义变量
CC = gcc
CFLAGS = -Wall -O0 -g  #设置编译选项
SRC = $(wildcard *.c)
OBJ = $(patsubst %.c, %.o, $(SRC))
APP = srv
#定义规则
$(APP) : $(OBJ)
	$(CC) $(CFLAGS) -o $@ $^ -lm

#定义规则
clean:
	$(RM) *.o $(APP)
.PHONY: clean #伪目标，强制更新

